﻿using UnityEngine;

/// <summary>
/// 可以同时检测Press和Hold吗？
/// </summary>
public class Test03 : MonoBehaviour
{
    public InputManager03 im;

    void Start()
    {
        im.Enable();

        im.Player.Jump.performed += ctx => {
            Debug.Log("Jump");
        };

        im.Player.Fire.performed += ctx => {
            Debug.Log("Fire");
        };

    }

    private void OnDestroy()
    {
        im.Disable();
    }
}
